package com.suning.sawp.dto.aircondition;


import org.apache.commons.lang3.StringUtils;

/**
 * 门店信息
 * 
 * @author 15051133
 *
 */
public class StoreVo{

    /**
     * 门店类型：香港店
     */
    public static final String XG_TYPE = "X";
    /**
     * 门店类型：澳门店
     */
    public static final String OM_TYPE = "M";
    /**
     * 门店类型：乐购仕
     */
    public static final String LGS_TYPE = "L";
    /**
     * 门店类型：红孩子
     */
    public static final String HHZ_TYPE = "R";

    // 区域编码
    private String areaCode;

    // 城市编码
    private String cityCode;

    // 门店编码/OrgCode
    private String storeCode;

    // 门店名称
    private String storeName;

    /**
     * 分公司代码
     */
    private String orgid;

    /**
     * 门店类型
     */
    private String type;
    /**
     * 门店类型描述
     */
    private String typeDesc;

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getOrgid() {
        return orgid;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    /**
     * 获取类型描述
     * 
     * @return
     */
    public String getTypeDesc() {
        if (StringUtils.isEmpty(typeDesc) && StringUtils.isNotEmpty(this.type)) {
            if (this.type.equals(StoreVo.XG_TYPE)) {
                typeDesc = "香港店";
            } else if (this.type.equals(StoreVo.OM_TYPE)) {
                typeDesc = "澳门店";
            } else if (this.type.equals(StoreVo.LGS_TYPE)) {
                typeDesc = "乐购仕";
            } else if (this.type.equals(StoreVo.HHZ_TYPE)) {
                typeDesc = "红孩子";
            }
        }
        return typeDesc;
    }

    public void setTypeDesc(String typeDesc) {
        this.typeDesc = typeDesc;
    }
}
